package com.example.dbsample.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.dbsample.annotation.BeanFieldAnnotation;
import lombok.Data;

@Data
@TableName("sample_condition")
public class ConditionEntity extends BaseEntity {
    //@TableId(value = "condition_id", type = IdType.AUTO)
    //private long conditionId;

    @BeanFieldAnnotation(desc = "条件名称", isCnName = true)
    @TableField(value = "condition_name")
    private String conditionName;


    @BeanFieldAnnotation(desc = "条件类型", filedType = "Integer", isMapping = true, mappingMapStr = "{\"2\":\"常规变量比较条件\",\"1\":\"复合条件\"}")
    @TableField(value = "condition_type")
    private Integer conditionType;

    @TableField(value = "show_type")
    private Integer showType;

    @BeanFieldAnnotation(desc = "条件配置")
    @TableField(value = "expand1")
    private String expand1;
}
